package com.yq.ylmall.order.mapper;

import com.yq.ylmall.dto.order.PaymentInfoDto;
import com.yq.ylmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yq.ylmall.model.order.OrderStatistics;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author cherry
 * @since 2024-06-05
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    // 查询指定日期产生的订单数据
    OrderStatistics selectOrderStatistics(String createTime);

    int createPaymentInfo(PaymentInfoDto paymentInfo);

    int updatePaymentInfo(PaymentInfoDto paymentInfo);

}
